package Oct_2020_BETA.part3;
import Oct_2020.part6.Str;



import java.io.*;

public class Pra {
    public static void main(String[] args) throws IOException {
        File file=new File("F:\\wudao\\README.md");
        File file1=new File("F:\\wudao\\C_README.md");
        copy(file,file1);
    }
    public static void copy(File file1,File file2) throws IOException {
        FileInputStream f1=new FileInputStream(file1);
        FileOutputStream f2=new FileOutputStream(file2);
        while (f1.read()!=-1){
            f2.write(f1.read());
        }
        f1.close();
        f2.close();
    }
    public static void sim_copy(String s1,String s2){
//
    }
}
//do f2.write(f1.read()); while (f1.read()!=-1);
